package com.guoxue.dao.impl;

import org.springframework.stereotype.Repository;

import com.guoxue.dao.IPlayerProgressDao;
import com.guoxue.domain.PlayerProgressVo;

@Repository
public class PlayerProgressDaoImpl extends BaseDaoImpl<PlayerProgressVo> implements IPlayerProgressDao {

	@Override
	public PlayerProgressVo getPlayerProgressByUid(int id) {
		return get("FROM PlayerProgressVo p WHERE p.uid = ?", new Object[] {id});
	}

	@Override
	public void savePlayerProgress(PlayerProgressVo pp) {
		saveOrUpdate(pp);
	}

}
